package cn.wolfcode.luowowo.test_enum;

import lombok.Getter;
import lombok.Setter;

/**
 * 枚举特点:不能实例对象.
 *
 */
@Getter
public enum MyDate {

    //调用两个参数构造器对象
    DATA1("date1",1L), DATA2("date2",2L);


    private String prefix;
    private Long time;

    // 构造器
    private MyDate(String prefix,Long time){
        this.prefix = prefix;
        this.time = time;
    }

    public String join(String value){
        System.out.println(value);
        return value;
    }

}
